import urllib2
import cookielib
cookie = cookielib.CookieJar()
handler = urllib2.HTTPCookieProcessor(cookie)
opener = urllib2.build_opener(handler)
reponse = opener.open('http://qgc.qq.com/314962432/t/1')
for item in cookie:
    print "Name = " + item.name
    print "Value = " + item.value
